package com.keshihao.eduservice.hystrix;

import com.keshihao.commonutils.R;
import com.keshihao.eduservice.feign.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Mr.Ke
 * @create 2020-06-14-12:52
 *
 * Vod模块熔断器，当远程调用方法失败时执行
 */
@Component
public class VodHystrix implements VodClient {

    @Override
    public R removeAlyVideo(String id) {
        return R.error().message("删除视频出错");
    }

    @Override
    public R removeAlyVideos(List<String> videoIdList) {
        return R.error().message("删除多个视频出错");
    }

}
